import { BadRequestException, Controller, Get,HttpException,HttpStatus,Inject, Param, ParseIntPipe, UseFilters } from '@nestjs/common'
import { OtherService } from './other.service'
import { AppService } from './app.service'
import { ForbiddenException } from './forbidden.exception'
import { CustomExceptionFilter } from './custom-exception.filter'

// import { LoggerService, UseValueService, UseFactory, LoggerClassService } from './logger.service'

@Controller()
// @UseFilters(new CustomExceptionFilter)
export class AppController {

  @Get('number/:id')
  custom(@Param('id', ParseIntPipe) id:number){
    return id
  }

}
